package homework;

import demo02.BaoZi;

public class BaoZiPu implements Runnable{
    private Storage storage;
    public BaoZiPu() {
		super();
	}

	

	public BaoZiPu(Storage storage) {
		super();
		this.storage = storage;
	}



	@Override
    public void run(){
        while(true){
            try{
                Thread.sleep(1000);
                storage.MakeBz();
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}
